<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="inv-h-w">
			<view :class="['inv-h',Inv==5?'inv-h-se':'']" @click="yj_searchForm(Inv=5)">详情</view>
			<view :class="['inv-h',Inv==0?'inv-h-se':'']" @click="yj_searchForm(Inv=0)">闭合申请单</view>
			<view v-if="Fdata.Look>=1" :class="['inv-h',Inv==1?'inv-h-se':'']" @click="yj_searchForm(Inv=1)">一级审核</view>
			<view v-if="Fdata.Look>=2" :class="['inv-h',Inv==2?'inv-h-se':'']" @click="yj_searchForm(Inv=2)">二级审核</view>
		</view>

		<view class="" style="position: absolute;width: 100%;margin-top: 100upx">
			<view class="formPage" v-if="Inv==5">
				<form>
					<fromItem title="标段名称" :data="totalData.lrCheckSample.fSampletypename" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="样品编号" :data="totalData.lrCheckSample.fSamplemodel" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="报告编号" :data="totalData.lrCheckSample.fSamplereportnostr" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="报告日期" :data="totalData.lrCheckSample.fReportdates" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem title="工程部位/用途" :data="totalData.lrCheckSample.fProjectlocation" flex="right"
						nameColor="#989898" projectName="#343434"  type='textarea'>
					</fromItem>
				</form>
			</view>

			<view class="formPage" v-show="Inv==0">
				<form>
					<fromItem title="不合格参数及结果" :data="totalData.checkSampletestclose.fWarningcontent" flex="right"
						nameColor="#989898" projectName="#343434" type='textarea'>
					</fromItem>
					<fromItem title="处理方式" :data="totalData.checkSampletestclose.fHandleway" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="处理人" :data="totalData.checkSampletestclose.fHandleusername" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="处理日期" :data="totalData.checkSampletestclose.fHandledates" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>

					<view class="cu-bar bg-white" style="border-top:1px #ccc solid ;">
						<view class="action">
							<image :src="unIcon" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
								附件资料
						</view>
						<view class="action">
							{{fPhotofilelist.length}}/{{count}}
						</view>
					</view>
					
					<view v-if="must0 == 'no'" class="fileList">
						<div class="box" v-if="fPhotofilelist.length !== 0">
							<div class="file" style v-for="(item, index) in fPhotofilelist" :key="index"
								@click="pdfPage(item.name, item.url)">
								<image src="@/static/pdf.png">
								</image>
								<span class="text" style>{{ item.name }}</span>
							</div>
						</div>
					</view>


				</form>
			</view>

			<view class="formPage" v-show="Inv==1">
				<form>
					<fromItem title="审核结果" :data="totalData.checkSampletestclose.fFirstcheckresult" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="审核人" :data="totalData.checkSampletestclose.fFirstcheckusername" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="审核日期" :data="totalData.checkSampletestclose.fFirstcheckdates" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="审核意见" :data="totalData.checkSampletestclose.fFirstcheckopinion" flex="right"
						nameColor="#989898" projectName="#343434"  type='textarea'>
					</fromItem>

					<view class="cu-bar bg-white" style="border-top:1px #ccc solid ;">
						<view class="action">
							<image :src="unIcon" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
								附件资料
						</view>
						<view class="action">
							{{FauditFileurllist.length}}/{{count}}
						</view>
					</view>
					
					<view v-if="must1 == 'no'" class="fileList">
						<div class="box" v-if="FauditFileurllist.length !== 0">
							<div class="file" style v-for="(item, index) in FauditFileurllist" :key="index"
								@click="pdfPage(item.name, item.url)">
								<image src="@/static/pdf.png">
								</image>
								<span class="text" style>{{ item.name }}</span>
							</div>
						</div>
					</view>

				</form>
			</view>

			<view class="formPage" v-show="Inv==2">
				<form>
					<fromItem title="审核结果" :data="totalData.checkSampletestclose.fSecondcheckresult" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="审核人" :data="totalData.checkSampletestclose.fSecondcheckusername" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="审核日期" :data="totalData.checkSampletestclose.fSecondcheckdates" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem title="审核意见" :data="totalData.checkSampletestclose.fSecondcheckopinion" flex="right"
						nameColor="#989898" projectName="#343434"   type='textarea'>
					</fromItem>

					<view class="cu-bar bg-white" style="border-top:1px #ccc solid ;">
						<view class="action">
							<image :src="unIcon" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
								附件资料
						</view>
						<view class="action">
							{{SauditFileurllist.length}}/{{count}}
						</view>
					</view>
				
					<view v-if="must2 == 'no'" class="fileList">
						<div class="box" v-if="SauditFileurllist.length !== 0">
							<div class="file" style v-for="(item, index) in SauditFileurllist" :key="index"
								@click="pdfPage(item.name, item.url)">
								<image src="@/static/pdf.png">
								</image>
								<span class="text" style>{{ item.name }}</span>
							</div>
						</div>
					</view>
					
				</form>
			</view>


		</view>
	</view>
</template>
<script src="./index.js">
</script>
<style scoped lang="less">
	@import './index.less';
</style>
